<?php
/**
 *
 * @author Jean-Baptiste
 * @version 
 */

/**
 * LangTab helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Zend_View_Helper_LangTab extends Zend_View_Helper_Abstract
{
    private $_style;  
    
    public function langTab()
    {
        $this->_defaultValues();
        return $this;
    }
        
    private function _defaultValues() 
    {
    	$this->style('large');    	
    }
    
    public function style($style) 
    {
    	$this->style = $style;
    	return $this;
    }
       
    public function render() 
    {
    	
        $html = '<div id="lang_indicator" class="'.$this->style.'">'."\n";
    	$html .= '<span id="btn_flag_vi" class="btn_flag"></span>'."\n";
    	$html .= '<span id="btn_flag_en" class="btn_flag"></span>'."\n";
    	$html .= '<span id="btn_flag_ja" class="btn_flag"></span>'."\n";
    	$html .= '<span id="btn_flag_zh" class="btn_flag"></span>'."\n";
    	$html .= '<span id="btn_flag_fr" class="btn_flag"></span>'."\n";
    	$html .= '</div>'."\n";
    
    	return $html;
    }
    
}
